home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / AquaMetalTheme.java < prev    next >
Text File  |  1998-06-30  |  2KB  |  47 lines

  1. /* 
  2.  * @(#)AquaMetalTheme.java    1.1 98/03/10
  3.  * 
  4.  * Copyright (c) 1997 Sun Microsystems, Inc. All Rights Reserved.
  5.  * 
  6.  * This software is the confidential and proprietary information of Sun
  7.  * Microsystems, Inc. ("Confidential Information").  You shall not
  8.  * disclose such Confidential Information and shall use it only in
  9.  * accordance with the terms of the license agreement you entered into
  10.  * with Sun.
  11.  * 
  12.  * SUN MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
  13.  * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  14.  * IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
  15.  * PURPOSE, OR NON-INFRINGEMENT. SUN SHALL NOT BE LIABLE FOR ANY DAMAGES
  16.  * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING
  17.  * THIS SOFTWARE OR ITS DERIVATIVES.
  18.  * 
  19.  */
  20.  
  21.  
  22. import com.sun.java.swing.plaf.*;
  23. import com.sun.java.swing.plaf.metal.*;
  24. import com.sun.java.swing.*;
  25. import com.sun.java.swing.border.*;
  26. import java.awt.*;
  27.  
  28. /**
  29.  * This class describes a theme using "blue-green" colors.
  30.  *
  31.  * @version 1.1 03/10/98
  32.  * @author Steve Wilson
  33.  */
  34. public class AquaMetalTheme extends DefaultMetalTheme {
  35.  
  36.     public String getName() { return "Oxide"; }
  37.  
  38.     private final ColorUIResource primary1 = new ColorUIResource(102, 153, 153);
  39.     private final ColorUIResource primary2 = new ColorUIResource(128, 192, 192);
  40.     private final ColorUIResource primary3 = new ColorUIResource(159, 235, 235);
  41.  
  42.     protected ColorUIResource getPrimary1() { return primary1; }  
  43.     protected ColorUIResource getPrimary2() { return primary2; } 
  44.     protected ColorUIResource getPrimary3() { return primary3; } 
  45.  
  46. }
  47.